//引入VueRouter
import VueRouter from 'vue-router'
//引入Luyou 组件
import Vue from "vue";
import bidding from '../components/bidding.vue'
import notice from '../components/notice.vue'

Vue.use(VueRouter);
//创建router实例对象，去管理一组一组的路由规则
const router = new VueRouter({
    //tips:不想要 #（锚点）就添加下面代码
    mode: 'history',
    routes:[
        {
            path:'/bidding',
            component:bidding,
            meta: { show: true }
        },
        {
            path:'/notice',
            component:notice,
            meta: { show: true }
        }
    ]
})

//暴露router
export default router